package com.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author wzm
 * @create 2023-10-16 16:44
 * project_name:javaweb2308
 */
@Component
//@Aspect
@Slf4j
public class MyPointTest {

    //针对list()和delete进行增强  注解所在的包名类名
    @Before("@annotation(com.aop.anno.MyPoint)")
    public void before(){
        log.info("before...");

    }

    @After("@annotation(com.aop.anno.MyPoint)")
    public void after(){
        log.info("after...");
    }
}
